﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Dynamic.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using WMS.PurchaseNoticeDetailTable.DTO;

namespace WMS.PurchaseNoticeDetailTable
{
    public interface IPurchaseNoticeDetailAppService:IApplicationService
    {
        /// <summary>
        /// 进货通知明细显示
        /// </summary>
        /// <param name="customername">客户名称</param>
        /// <param name="prductname">商品名称</param>
        /// <param name="page">初始页</param>
        /// <param name="limit">每页几条数据</param>
        /// <returns></returns>
        Task<PagedResult> GetPurchaseNoticeDetailInfo(string? customername, string? prductname, int page, int limit);
        /// <summary>
        /// 进货通知明细添加
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<int> CreatePurchaseNotice(CreatePurchaseNoticeDTO dto);
        /// <summary>
        /// 进货通知明细删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeletePurchaseNotice(int id);
        /// <summary>
        /// 根据Id获取进货通知明细信息
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<GetPurchaseNoticeDTO> FanTianPurchaseDetail(int id);
        /// <summary>
        /// 进货通知明细修改
        /// </summary>
        /// <param name="dto"></param>
        /// <returns></returns>
        Task<int> UpdatePurchaseNotice(UpdatePurchaseNoticeDTO dto);
    }
}
